﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace BiffenService.Model
{
    [DataContract]
    public class PriceCategory
    {
        [DataMember]
        public int Id { get; set; }

        [DataMember]
        public string Name { get; set; }

        [DataMember]
        public decimal Price { get; set; }

        private string displayName;
        [DataMember]
        public string DisplayName { 
            get 
            {
                return displayName;
            } 
            set 
            {
                // test 
            } 
        }

        public PriceCategory(int id, string name, decimal price)
        {
            Id = id;
            Name = name;
            Price = price;
            displayName = Name + " - " + Price.ToString();
        }
    }
}
